Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing tee to check on warnings #28

Closed
wants to merge 1 commit into from

Conversation

aaronenyeshi
Copy link
Contributor

Previously tee produced a ${output_file}.linked.bc.out which is used to check and fail on warnings. However after removal of llvm-link step, we missed this out file. It is needed for line 70 check.

Previously tee produced a ${output_file}.linked.bc.out which is used to check and fail on warnings. However after removal of llvm-link step, we missed this out file. It is needed for line 70 check.
@@ -64,7 +64,7 @@ ${CLANG} -c -emit-llvm \
-Xclang -cl-ext=+cl_khr_fp64,+cl_khr_global_int32_base_atomics,+cl_khr_global_int32_extended_atomics,+cl_khr_local_int32_base_atomics,+cl_khr_local_int32_extended_atomics,+cl_khr_int64_base_atomics,+cl_khr_int64_extended_atomics,+cl_khr_3d_image_writes,+cl_khr_byte_addressable_store,+cl_khr_gl_sharing,+cl_amd_media_ops,+cl_amd_media_ops2,+cl_khr_subgroups \
-include ${OPENCL_INCLUDE}/opencl-c.h \
${BITCODE_ARGS} \
${options} -o ${output_file}.linked.bc ${input_file}
${options} -o ${output_file}.linked.bc ${input_file} |& tee ${output_file}.linked.bc.out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this include compiler warnings? Previously, this was grepping the warnings during the link stage only.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the grep completely in PR #27.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this would include all warnings including compiler warnings during the optimization and codegen phases. It won't be checking just link stage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the grep completely in PR #27.

Okay, maybe that is the better approach.

@pfultz2 pfultz2 closed this Jul 22, 2020
@aaronenyeshi aaronenyeshi deleted the fix-missing-tee-out branch July 22, 2020 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants